﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EntLibEC.Biz.Basic;
using EntLibEC.Cmn;

namespace EntLibEC.Shopping.Include
{
    public partial class BrandFilterControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void BindFilter(int c3sysno)
        {
            lstBrand.DataSource = ManufacturerManager.GetInstance().GetBrandListByC3(c3sysno);
            lstBrand.DataBind();
        }

        public int BrandSysNo
        {
            get
            {
                if (lstBrand.SelectedValue != null)
                    return Convert.ToInt32(lstBrand.SelectedValue);
                else
                    return AppConst.IntNull;
            }
            set
            {
            }
        }
    }
}